package org.tea.inventory.service.impl;

import org.tea.inventory.dao.sys.UserInfoMapper;
import org.tea.inventory.domain.sys.UserInfo;
import org.tea.inventory.service.IUserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author hanzy
 * @description
 * @date 2023年04月06日 17:29
 */
@Service
public class UserInfoServiceImpl implements IUserInfoService {

    @Autowired
    private UserInfoMapper userInfoMapper;

    //      获取所有用户(排除已删除的)
    @Override
    public List<UserInfo> searchAllUsers() {
        return userInfoMapper.searchAllUsers();
    }

    @Override
    public UserInfo selectUserInfoByLognId(String loginId) {
        return userInfoMapper.selectUserInfoByLognId(loginId);
    }
}
